package com.example.javarabbitmq.springrabbitdemo;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 使用spring-rabbit工具，队列配置
 * @author HAN Bing
 * @date 2021/6/1
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue helloQueue() {
        return new Queue("hello");
    }
}
